The formula fields are as follows:
If {maintable. botherdoc} = "on" thenChrw (254)ElseChrw (168)
Maintable. botherdoc is a string value obtained from the check box through fromconnection. It is "on" When selected, and null when not selected.
The topic of this article is:
Functions and formulas, total Runtime.
This article focuses on the basics and will be used in some practical scenarios.
1: Formula The formula can be said to be the essence of the crystal report, and its importance is
When improving a contract project, there is a need because the calculation formula for non-data items in the contract will be changed according to the year, and the formula was previously hard coded into the system, as long as the time changes, the
A few days ago encountered a problem, you need to read a formula containing parameters from the XML file and call it.
So the internet to find ways, but it is not found can be resolved with parameters of the formula method, and then absorb some of
I. Example of using a formula field:
A. Conversion of measurement unitsThis is a very simple example to demonstrate how to convert and calculate different variable types in formulas.Sometimes the unit of the database field is different from the
The main difference between process-oriented design and object-oriented design is whether to use lengthy if else judgment at the business logic layer. If you are still using the if else in large quantities, except for the interface presentation
First, look at the formula of full probability in the traditional sense:
P (B) =∑I=1NP (b| AI) P (AI)
The P (B) on the left side of the equal sign is a state amount, and the ∑ on the right is a process amount. This representation is consistent with
logical operators&&: Two operator, true on both sides. The result is true.|| : A two-dollar operator, as long as one is true and the result is true.!: unary operator, reverse, true false, false change true.Short circuit operationThe difference
If,elseIf if, else is another meaning, if the condition is determined within the parentheses, if the condition is met, the IF statement executes the command and if it does not, the IF statement is not entered.The basic format:①if (...) Conditions
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.